From 707459fe4ea284386f31cd8e90ed4551d34c142a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 23 Jul 2015 01:04:15 -0400 Subject: [PATCH] file chooser: Make keynav in save mode smoother When using the location popup to complete to a directory name (with a trailing /), we should not punish the user by making the Open button insensitive and preventing the Enter key from doing the expected thing (switching to that directory). https://bugzilla.gnome.org/show_bug.cgi?id=752708 --- gtk/gtkfilechooserwidget.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 40cdd28446..c0d8e9761d 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -5853,12 +5853,6 @@ gtk_file_chooser_widget_get_files (GtkFileChooser *chooser) if (!is_well_formed) return NULL; - if (is_file_part_empty && priv->action == GTK_FILE_CHOOSER_ACTION_SAVE) - { - g_object_unref (info.file_from_entry); - return NULL; - } - if (info.file_from_entry) info.result = g_slist_prepend (info.result, info.file_from_entry); else if (!file_list_seen) -- 2.30.2